﻿@{
    ViewBag.Title = "文档";
    var docno = Request.RequestContext.RouteData.Values["id"].xTrim();
    if (docno.Length <= 0)
    {
        Html.RenderPartial("Result", new YYS.ResultModel() { IsPart = 1, Icon = 5, Msg = "缺少必须的参数", Title = "提示" });
        return;
    }

    var docObj = YYS.Controllers.pcController._HelperDocInfo(docno,0);
    if (docObj.HasError)
    {
        Html.RenderPartial("Result", new YYS.ResultModel() { IsPart = 1, Icon = 5, Msg = docObj.Error, Title = "提示" });
        return;
    }
    ViewBag.Title = docObj.Obj["hdTitle"];
    var data = docObj.Obj.xConvertObjectToJson(false).xToBase64();
}

<div id="app" class="flex-column h100 hidden">
    <div class="flex-row h100" style="align-items:flex-start;">
        <div class="flex-row-fill flex-column bg-light">
            <div class="flex-column-fill hidden-x">
                <js-media-detail v-if="!!msgInfo" :preview="false" :value="msgInfo"></js-media-detail>
                <el-empty v-else :image-size="200" class="h100" description="暂无预览"></el-empty>
            </div>
        </div>
    </div>
</div>

@section script{

}
@section body{
    @*@System.Web.Optimization.Scripts.Render("~/Content/pc/helper.share")*@
    @*<script src="@Url.Content("~/Views/pc/My/Component/helper.share.js")"></script>*@
<script src="@Url.Content("~/Content/pc/helper.share.js?rd="+ DateTime.Now.ToString())"></script>
    <script>
       window.$jscript.fn.helperShare.ready({ msg: '@(data)',link: '@(Url.Content("~/"))' })
    </script>
}
